//
//  SEGHLBNeihborhoodDetailViewModel.h
//  SEGViewModel
//
//  Created by 梁学彰 on 2020/11/18.
//

#import <Foundation/Foundation.h>
#import "SEGCommunitySocialManager.h"
#import "SEGSharedNewManager.h"
#import "SEGHelpManager.h"
#import "SEGSHManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface SEGHLBNeihborhoodDetailViewModel : NSObject
/** 是否是自己发布的 */
@property (nonatomic, assign) BOOL isMy;
/** 集市内容 */
@property (nonatomic, copy) NSString *marketContent;
/** 主体用户信息 */
@property (nonatomic, strong)SEGSharedCommonUserModel *userModel;
@property (nonatomic, strong) NSIndexPath* selectedIndexPath;
/** 选中的子评论中回复的第几条 -1表示子评论本身 */
@property (nonatomic, assign) NSInteger selectChildIndex;
/** 发送的评论内容 */
@property (nonatomic, copy) NSString *commentContent;

/** 请求类 */
@property (nonatomic, strong)SEGCommunitySocialManager *socialManager;
@property (nonatomic, strong)SEGSharedNewManager *sharedNewManager;
@property (nonatomic, strong)SEGHelpManager *helpManager;
@property (nonatomic, strong)SEGSHManager *sHManager;
/** 页码 */
@property (nonatomic, assign) NSUInteger pageNo;
/** 是否正在点赞(防止重复调用点赞接口) */
@property (nonatomic, assign) BOOL isLiking;


- (RACSignal *)requestDetailInfoWithOperationType:(SEGNeighbourhoodOperationType)type objId:(NSString *)objId;

- (RACSignal *)requestCommentsWithObjId:(NSString *)objId objType:(NSString *)objType;

- (RACSignal *)seg_commentForwardPGCWithNickName:(NSString *)nickName objId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;


- (RACSignal *)seg_commentMarketWithNickName:(NSString *)nickName objId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;

- (RACSignal *)seg_commentHelpOrTopicWithNickName:(NSString *)nickName objId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;

- (RACSignal *)seg_commentToChildCommentWithObjId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;

- (RACSignal *)seg_commentMarketChildCommentWithNickName:(NSString *)nickName objId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;

- (RACSignal *)praiseButtonActionWithObjId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;

- (RACSignal *)sellOutAction;
- (RACSignal *)deleteActionWithObjId:(NSString *)objId objType:(NSString *)objType operationType:(SEGNeighbourhoodOperationType)operationType;
@end

NS_ASSUME_NONNULL_END
